package com.handpay.nocardpay.baselibrary.account.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.handpay.nocardpay.baselibrary.commbase.model.bean.BaseResponseBean;


/**
 * @author sxshi on 2016/12/23.
 * @email:emotiona_xiaoshi@126.com
 * @describe:Describe user bean
 */

public class Account extends BaseResponseBean {

    /**
     * userID : 4A07113E36BFD691
     * phone : 8DA807430348FB6ED1017EB0BC9A1682
     * sessionID : 175499|B2312EE6DF7741CAA50B1B7FFFD97FAB
     * status : 00
     * shopName : 9B9CD0CB317A2379F8F1B07329D47450
     * account : 41EA37350D79640D3971CECF01C4750D
     * merchantCode : HXZZT@liuru713
     */

    private String account;
    private  String gesturePwd;
    private String merchantCode;
    private String phone;
    private String sessionID;
    private String shopName;
    private String status;
    private String userID;

    private String failDescription;
    private String passwdStatus;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSessionID() {
        return sessionID;
    }

    public void setSessionID(String sessionID) {
        this.sessionID = sessionID;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public String getFailDescription() {
        return failDescription;
    }

    public String getGesturePwd() {
        return gesturePwd;
    }

    public void setGesturePwd(String gesturePwd) {
        this.gesturePwd = gesturePwd;
    }

    public void setFailDescription(String failDescription) {
        this.failDescription = failDescription;
    }

    public String getPasswdStatus() {
        return passwdStatus;
    }

    public void setPasswdStatus(String passwdStatus) {
        this.passwdStatus = passwdStatus;
    }


    public Account() {
    }



    @Override
    public String toString() {
        return "Account{" +
                "account='" + account + '\'' +
                ", merchantCode='" + merchantCode + '\'' +
                ", phone='" + phone + '\'' +
                ", responseCode='" + responseCode + '\'' +
                ", sessionID='" + sessionID + '\'' +
                ", shopName='" + shopName + '\'' +
                ", status='" + status + '\'' +
                ", userID='" + userID + '\'' +
                ", failDescription='" + failDescription + '\'' +
                ", passwdStatus='" + passwdStatus + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.account);
        dest.writeString(this.gesturePwd);
        dest.writeString(this.merchantCode);
        dest.writeString(this.phone);
        dest.writeString(this.sessionID);
        dest.writeString(this.shopName);
        dest.writeString(this.status);
        dest.writeString(this.userID);
        dest.writeString(this.failDescription);
        dest.writeString(this.passwdStatus);
    }

    protected Account(Parcel in) {
        super(in);
        this.account = in.readString();
        this.gesturePwd = in.readString();
        this.merchantCode = in.readString();
        this.phone = in.readString();
        this.sessionID = in.readString();
        this.shopName = in.readString();
        this.status = in.readString();
        this.userID = in.readString();
        this.failDescription = in.readString();
        this.passwdStatus = in.readString();
    }

    public static final Creator<Account> CREATOR = new Creator<Account>() {
        @Override
        public Account createFromParcel(Parcel source) {
            return new Account(source);
        }

        @Override
        public Account[] newArray(int size) {
            return new Account[size];
        }
    };
}
